operate text and cursor position

Text Area
start: end:
RichText Area
start: end:
Please write some integer in the textbox given below and press "Set Position" button. Press "Get Position" button to get the position of cursor.